<%--
  Created by IntelliJ IDEA.
  User: kgc
  Date: 2020/10/13
  Time: 下午2:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
<h3>requestLine</h3>
<form action="${pageContext.request.contextPath}/requestLine" method="get">
    <input type="text" name="mobile" value="15311484568" autocomplete="off" placeholder="请输入手机号"><br>
    <input type="password" name="password" value="123456" autocomplete="off" placeholder="请输入密码"><br>
    <input type="submit" value="登录">
</form>
<h3>get</h3>
<form action="${pageContext.request.contextPath}/person.action" method="get">
    <input type="text" name="mobile" value="15311484568" autocomplete="off" placeholder="请输入手机号"><br>
    <input type="password" name="password" value="123456" autocomplete="off" placeholder="请输入密码"><br>
    <input hidden type="password" name="methodName" value="loginWithFormByGet" autocomplete="off" readonly>
    <input type="submit" value="登录">
</form>
<h3>post</h3>
<form action="${pageContext.request.contextPath}/person.action?methodName=loginWithFormByGet" method="post">
    <input type="text" name="mobile" value="15311484568" autocomplete="off" placeholder="请输入手机号"><br>
    <input type="password" name="password" value="123456" autocomplete="off" placeholder="请输入密码"><br>
    <input type="submit" value="登录">
</form>
<h3>put</h3>
<form action="${pageContext.request.contextPath}/person.action" method="put">
    <input type="text" name="mobile" value="15311484568" autocomplete="off" placeholder="请输入手机号"><br>
    <input type="password" name="password" value="123456" autocomplete="off" placeholder="请输入密码"><br>
    <input hidden type="password" name="methodName" value="addWithFormByPut" autocomplete="off" readonly>
    <input type="submit" value="登录">
</form>
<h3>delete</h3>
<form action="${pageContext.request.contextPath}/person.action" method="delete">
    <input type="text" name="mobile" value="15311484568" autocomplete="off" placeholder="请输入手机号"><br>
    <input hidden type="password" name="methodName" value="deleteWithFormBydelete" autocomplete="off" readonly>
    <input type="submit" value="登录">
</form>
</body>
</html>
